

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
  <head>
    <title>TextBook Trader</title>
    <meta http-equiv="content-type" content="text/html; charset=utf-8" />
    <meta http-equiv="imagetoolbar" content="no" />
    <meta name="keywords" content="textbooks, college, trade, easy" />
    <meta name="description" content="TextBook Trader allows you to trade your college books with other students for free" />
    <meta name="author" content="Weber CS4350 Students" />
    <meta name="copyright" content="yes" />	  
    <meta name="revisit-after" content="3 days" />
    <link href="/stylesheets/style.css" rel="stylesheet" type="text/css" />
    <!--[if IE]><link href="/stylesheets/ie-transparency.css" rel="stylesheet" type="text/css" /><![endif]-->    
  </head>
  
  <body id="home">
    <ul class="hide"><li><a href="#body">Skip to content</a></li></ul>
    <div id="container">
      <div id="header">
        <h1><%=  link_to "TextBook<span>Trader</span>", :controller => "book", :action => "index" %></h1>		
      </div>
      
      <div id="body">
        <ul id="nav">
          <li class="on first" id="HomePage"><%=  link_to "Home Page", :controller => "static", :action => "homepage" %></li>
          <li id="WhyTrade"><%=  link_to "Why Trade", :controller => "static", :action => "whytrade" %></li>
          <li id="BrowseBooks"><%=  link_to "Browse Books", :controller => "book", :action => "index" %></li>
          <% if logged_in? %>
            <li id="YourAccount"><%=  link_to "Your Account", :controller => "user", :action => "show" %></li>
          <% else %>
            <li id="Login"><%=  link_to "Login", :controller => "user", :action => "index" %></li>
          <% end %>
          
          <% if logged_in? %>
            <li id="LogOut"><%=  link_to "Log Out", :controller => "sessions", :action => "destroy" %></li>
          <% else %>
            <li id="JoinTrader"><%=  link_to "Join TextBook Trader", :controller => "user", :action => "new" %></li>
          <% end %>
                  
        </ul>
        <div id="content">
          <div>
            <%= yield :layout %>
          </div>
        </div>	
      </div>
      
      <div id="footer">
        <p class="left">&copy; 2008 CS-4350 Weber State University-Bryant Larsen</p>
        <p class="right">Template by <a href="http://www.onedollartemplates.com">One Dollar Templates</a></p>
      </div>	
    </div>	
  </body>
</html>
